package scau.mis4.chanyulin.base.redis;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.aspectj.lang.annotation.Aspect;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by cyl on 2017/9/17.
 */
@Component
@Aspect
public class MethodCacheInterceptor  implements MethodInterceptor {

    @Autowired
    private RedisCacheUtil redisCacheUtil;
    private static final Logger log = LoggerFactory.getLogger(MethodCacheInterceptor.class);

    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        Object value = null;

        String targetName = invocation.getThis().getClass().getName();
        String methodName = invocation.getMethod().getName();

        Object[] arguments = invocation.getArguments();

        return "";
    }

}
